package org.turl.wrappers;

import org.turl.objects.RectangularComplexNumber;

/**
 * Created by tonyx
 * Date: Dec 30, 2007
 * Time: 10:00:44 AM
 */
public class PolarToRectangularMapper implements  WrapperToObject {
        public Wrapper getWrapperForClassConstructorWithParameters(Class aClass,Class[] targetParams,Class[] originParams) {
        if (aClass.equals(RectangularComplexNumber.class)) {
            return new PolarToRectangular();
        }
        throw new RuntimeException("wrapper not defined for the target class");
    }
}
